package com.mall.user.services;

import com.mall.user.UserService;
import com.mall.user.utils.JwtTokenUtils;
import org.apache.dubbo.config.annotation.Service;

/**
 * @Author: lin
 * @Date: 2020/7/12 23:01
 */

@Service
public class UserServiceImpl implements UserService {

    public String getUid(String token) {
        String s = JwtTokenUtils.builder().token(token).build().freeJwt();
        String[] split = s.split("=");
        return split[0];
    }
}
